package com.js.common.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ygl
 * @create 2018-11-02
 * @DESCRIPTION
 **/
@Data
public class TreeNodeVO<T> {

    protected Object id;
    protected Object parentId;
    List<T> children = new ArrayList<T>();

    public void add(T node){
        children.add(node);
    }

}
